import {defineConfig} from 'vite'
import vue from '@vitejs/plugin-vue'
import electron from 'vite-plugin-electron'

import path from "path";

// https://vitejs.dev/config/
export default defineConfig({
  plugins: [
    vue(),
    electron({
      // 主进程入口文件
      entry: 'electron_main.js'
    })
  ],
  /*开发服务器选项*/
  server: {
    // 端口
    port: 20000,
  },
  base: "./",
  resolve: {
      alias: {
          "@": path.resolve(__dirname, "./src"),
      },
  },
})
